.class public Lcom/example/m6shop/BaseActivity;
.super Landroid/app/Activity;
.source "BaseActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field public contentLayout:Landroid/widget/LinearLayout;

.field public gestureDetector:Landroid/view/GestureDetector;

.field public h:Landroid/os/Handler;

.field m:Lmyapp/MyApp;

.field public mcontext:Landroid/content/Context;

.field public message:Ljava/lang/String;

.field public showmenu:Z

.field public slideMenu:Lcom/example/m6shop/SlideMenu;

.field public title_bar_menu_btn:Landroid/widget/ImageView;

.field public title_bar_name:Landroid/widget/TextView;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 33
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 37
    iput-object v0, p0, Lcom/example/m6shop/BaseActivity;->contentLayout:Landroid/widget/LinearLayout;

    .line 38
    iput-object v0, p0, Lcom/example/m6shop/BaseActivity;->title_bar_menu_btn:Landroid/widget/ImageView;

    .line 39
    iput-object v0, p0, Lcom/example/m6shop/BaseActivity;->title_bar_name:Landroid/widget/TextView;

    .line 40
    iput-object v0, p0, Lcom/example/m6shop/BaseActivity;->m:Lmyapp/MyApp;

    .line 41
    iput-object v0, p0, Lcom/example/m6shop/BaseActivity;->h:Landroid/os/Handler;

    .line 42
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6shop/BaseActivity;->message:Ljava/lang/String;

    .line 43
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/example/m6shop/BaseActivity;->showmenu:Z

    .line 33
    return-void
.end method

.method private clearNotification()V
    .locals 2

    .prologue
    .line 254
    .line 255
    const-string v1, "notification"

    invoke-virtual {p0, v1}, Lcom/example/m6shop/BaseActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    .line 254
    check-cast v0, Landroid/app/NotificationManager;

    .line 256
    .local v0, "notificationManager":Landroid/app/NotificationManager;
    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/app/NotificationManager;->cancel(I)V

    .line 258
    return-void
.end method


# virtual methods
.method public bindleftmenu()V
    .locals 10

    .prologue
    .line 80
    const v9, 0x7f0701d6

    invoke-virtual {p0, v9}, Lcom/example/m6shop/BaseActivity;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    .line 81
    .local v5, "menu_orderlist":Landroid/widget/TextView;
    new-instance v9, Lcom/example/m6shop/BaseActivity$1;

    invoke-direct {v9, p0}, Lcom/example/m6shop/BaseActivity$1;-><init>(Lcom/example/m6shop/BaseActivity;)V

    invoke-virtual {v5, v9}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 98
    const v9, 0x7f0701d7

    invoke-virtual {p0, v9}, Lcom/example/m6shop/BaseActivity;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    .line 99
    .local v4, "menu_goodslist":Landroid/widget/TextView;
    new-instance v9, Lcom/example/m6shop/BaseActivity$2;

    invoke-direct {v9, p0}, Lcom/example/m6shop/BaseActivity$2;-><init>(Lcom/example/m6shop/BaseActivity;)V

    invoke-virtual {v4, v9}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 132
    const v9, 0x7f0701d8

    invoke-virtual {p0, v9}, Lcom/example/m6shop/BaseActivity;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/TextView;

    .line 133
    .local v7, "menu_userinfo":Landroid/widget/TextView;
    new-instance v9, Lcom/example/m6shop/BaseActivity$3;

    invoke-direct {v9, p0}, Lcom/example/m6shop/BaseActivity$3;-><init>(Lcom/example/m6shop/BaseActivity;)V

    invoke-virtual {v7, v9}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 147
    const v9, 0x7f0701d5

    invoke-virtual {p0, v9}, Lcom/example/m6shop/BaseActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 148
    .local v1, "menu_about":Landroid/widget/TextView;
    new-instance v9, Lcom/example/m6shop/BaseActivity$4;

    invoke-direct {v9, p0}, Lcom/example/m6shop/BaseActivity$4;-><init>(Lcom/example/m6shop/BaseActivity;)V

    invoke-virtual {v1, v9}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 162
    const v9, 0x7f0701d9

    invoke-virtual {p0, v9}, Lcom/example/m6shop/BaseActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 163
    .local v3, "menu_contact":Landroid/widget/TextView;
    new-instance v9, Lcom/example/m6shop/BaseActivity$5;

    invoke-direct {v9, p0}, Lcom/example/m6shop/BaseActivity$5;-><init>(Lcom/example/m6shop/BaseActivity;)V

    invoke-virtual {v3, v9}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 177
    const v9, 0x7f0701da

    invoke-virtual {p0, v9}, Lcom/example/m6shop/BaseActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 178
    .local v0, "dian":Landroid/widget/TextView;
    new-instance v9, Lcom/example/m6shop/BaseActivity$6;

    invoke-direct {v9, p0}, Lcom/example/m6shop/BaseActivity$6;-><init>(Lcom/example/m6shop/BaseActivity;)V

    invoke-virtual {v0, v9}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 192
    const v9, 0x7f0701db

    invoke-virtual {p0, v9}, Lcom/example/m6shop/BaseActivity;->findViewById(I)Landroid/view/View;

    move-result-object v8

    check-cast v8, Landroid/widget/TextView;

    .line 193
    .local v8, "ping":Landroid/widget/TextView;
    new-instance v9, Lcom/example/m6shop/BaseActivity$7;

    invoke-direct {v9, p0}, Lcom/example/m6shop/BaseActivity$7;-><init>(Lcom/example/m6shop/BaseActivity;)V

    invoke-virtual {v8, v9}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 206
    const v9, 0x7f0701d4

    invoke-virtual {p0, v9}, Lcom/example/m6shop/BaseActivity;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/TextView;

    .line 208
    .local v6, "menu_search":Landroid/widget/TextView;
    new-instance v9, Lcom/example/m6shop/BaseActivity$8;

    invoke-direct {v9, p0}, Lcom/example/m6shop/BaseActivity$8;-><init>(Lcom/example/m6shop/BaseActivity;)V

    invoke-virtual {v6, v9}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 218
    const v9, 0x7f0701dc

    invoke-virtual {p0, v9}, Lcom/example/m6shop/BaseActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    .line 219
    .local v2, "menu_collectlist":Landroid/widget/TextView;
    new-instance v9, Lcom/example/m6shop/BaseActivity$9;

    invoke-direct {v9, p0}, Lcom/example/m6shop/BaseActivity$9;-><init>(Lcom/example/m6shop/BaseActivity;)V

    invoke-virtual {v2, v9}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 228
    return-void
.end method

.method public iniview()V
    .locals 5

    .prologue
    .line 47
    iput-object p0, p0, Lcom/example/m6shop/BaseActivity;->mcontext:Landroid/content/Context;

    .line 48
    const v3, 0x7f0702a4

    invoke-virtual {p0, v3}, Lcom/example/m6shop/BaseActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Lcom/example/m6shop/SlideMenu;

    iput-object v3, p0, Lcom/example/m6shop/BaseActivity;->slideMenu:Lcom/example/m6shop/SlideMenu;

    .line 49
    const v3, 0x7f0701dd

    invoke-virtual {p0, v3}, Lcom/example/m6shop/BaseActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ImageView;

    iput-object v3, p0, Lcom/example/m6shop/BaseActivity;->title_bar_menu_btn:Landroid/widget/ImageView;

    .line 50
    iget-object v3, p0, Lcom/example/m6shop/BaseActivity;->title_bar_menu_btn:Landroid/widget/ImageView;

    invoke-virtual {v3, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 51
    const v3, 0x7f070070

    invoke-virtual {p0, v3}, Lcom/example/m6shop/BaseActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/example/m6shop/BaseActivity;->title_bar_name:Landroid/widget/TextView;

    .line 52
    const v3, 0x7f0702a5

    invoke-virtual {p0, v3}, Lcom/example/m6shop/BaseActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    iput-object v3, p0, Lcom/example/m6shop/BaseActivity;->contentLayout:Landroid/widget/LinearLayout;

    .line 53
    const v3, 0x7f0701d3

    invoke-virtual {p0, v3}, Lcom/example/m6shop/BaseActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    .line 54
    .local v2, "username":Landroid/widget/TextView;
    const-string v3, "userInfo"

    .line 55
    const/4 v4, 0x0

    .line 54
    invoke-virtual {p0, v3, v4}, Lcom/example/m6shop/BaseActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    .line 56
    .local v1, "preferences":Landroid/content/SharedPreferences;
    const-string v3, "username"

    const-string v4, ""

    invoke-interface {v1, v3, v4}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 57
    .local v0, "Naccount":Ljava/lang/String;
    invoke-virtual {v2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 61
    return-void
.end method

.method public loginout()V
    .locals 3

    .prologue
    .line 230
    new-instance v0, Landroid/app/AlertDialog$Builder;

    iget-object v1, p0, Lcom/example/m6shop/BaseActivity;->mcontext:Landroid/content/Context;

    invoke-direct {v0, v1}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 231
    const-string v1, "\u9000\u51fa\u63d0\u793a"

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    .line 232
    const-string v1, "\u9000\u51fa\u540e\u5c06\u4e0d\u80fd\u63a5\u53d7\u901a\u77e5\u4fe1\u606f"

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    .line 233
    const-string v1, "\u786e\u5b9a"

    new-instance v2, Lcom/example/m6shop/BaseActivity$10;

    invoke-direct {v2, p0}, Lcom/example/m6shop/BaseActivity$10;-><init>(Lcom/example/m6shop/BaseActivity;)V

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    .line 243
    const-string v1, "\u53d6\u6d88"

    new-instance v2, Lcom/example/m6shop/BaseActivity$11;

    invoke-direct {v2, p0}, Lcom/example/m6shop/BaseActivity$11;-><init>(Lcom/example/m6shop/BaseActivity;)V

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    .line 249
    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    .line 250
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1
    .param p1, "v"    # Landroid/view/View;

    .prologue
    .line 67
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    .line 77
    :goto_0
    return-void

    .line 69
    :pswitch_0
    iget-object v0, p0, Lcom/example/m6shop/BaseActivity;->slideMenu:Lcom/example/m6shop/SlideMenu;

    invoke-virtual {v0}, Lcom/example/m6shop/SlideMenu;->isMainScreenShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 70
    iget-object v0, p0, Lcom/example/m6shop/BaseActivity;->slideMenu:Lcom/example/m6shop/SlideMenu;

    invoke-virtual {v0}, Lcom/example/m6shop/SlideMenu;->openMenu()V

    goto :goto_0

    .line 72
    :cond_0
    iget-object v0, p0, Lcom/example/m6shop/BaseActivity;->slideMenu:Lcom/example/m6shop/SlideMenu;

    invoke-virtual {v0}, Lcom/example/m6shop/SlideMenu;->closeMenu()V

    goto :goto_0

    .line 67
    :pswitch_data_0
    .packed-switch 0x7f0701dd
        :pswitch_0
    .end packed-switch
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 1
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    .line 266
    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    .line 268
    iget-object v0, p0, Lcom/example/m6shop/BaseActivity;->slideMenu:Lcom/example/m6shop/SlideMenu;

    invoke-virtual {v0}, Lcom/example/m6shop/SlideMenu;->isMainScreenShowing()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 269
    iget-object v0, p0, Lcom/example/m6shop/BaseActivity;->slideMenu:Lcom/example/m6shop/SlideMenu;

    invoke-virtual {v0}, Lcom/example/m6shop/SlideMenu;->openMenu()V

    .line 277
    :cond_0
    :goto_0
    const/4 v0, 0x1

    return v0

    .line 272
    :cond_1
    invoke-virtual {p0}, Lcom/example/m6shop/BaseActivity;->loginout()V

    goto :goto_0
.end method

.method public onStart()V
    .locals 0

    .prologue
    .line 261
    invoke-direct {p0}, Lcom/example/m6shop/BaseActivity;->clearNotification()V

    .line 262
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 263
    return-void
.end method
